package com.mytrip.service;

import java.util.List;

import com.mytrip.base.service.BaseManager;
import com.mytrip.model.AreaBizTongcheng;
import com.mytrip.model.AreaTongcheng;
import com.mytrip.model.City;
import com.mytrip.model.CityChainTongcheng;
import com.mytrip.model.FlightCity;
import com.mytrip.model.FlightCompany;
import com.mytrip.model.OrderFlight;
import com.mytrip.model.OrderHotel;
import com.mytrip.util.PageInfo;
import com.mytrip.vo.HotelInfo;

public interface OrderManager extends BaseManager{

	List<FlightCity> queryAllFlightCity();

	String queryFlightByApi(String fromCity, String toCity, String fromDate);

	FlightCity queryFlightCityByCity3code(String city3code);

	List<FlightCompany> queryAllFlightCompany();

	String queryFlightPATByApi(String fromCity, String toCity, String flightNo, String departureDate, String carrier,
			String code, String price, String isTj, String tjId, String checkKey);

	String confirmOrder(String fromCity, String toCity, String flightNo, String departureDate, String departureTime,
			String arrivalDate, String arrivalTime, String carrier, String code, String price, String airportTax,
			String fuelSurTax, String isTj, String tjId, String checkKey, String peopleStr, Integer addressBooksId);

	int queryOrderFlightCnt();

	List<OrderFlight> queryOrderFlight(int from, int pageSize);

	City queryHotelCityByTongchengId(Integer tongchengId);

	List<AreaTongcheng> queryHotelAreaByCity(Integer cityId);

	List<AreaBizTongcheng> queryHotelAreaBizByCity(Integer cityId);

	List<CityChainTongcheng> queryHotelChainByCity(Integer cityId);

	void queryHotelByApi(String cityId, String fromDate, String toDate, String key, String priceRange, String area,
			String areaBiz, String chain, PageInfo<HotelInfo> page);

	String queryRoomsByHotelIdByApi(Integer hotelId, String fromDate, String toDate);

	String confirmHotelOrder(String hotelId, String roomTypeId, String hotelType, String bookingCode, String fromDate,
			String toDate, String roomNum, String guestNum, String name_lx, String tel_lx, String name_rz,
			String tel_rz, String come_time, String hotelName, String roomName, String avgAmount, String hotelAddress);

	int queryOrderHotelCnt();

	List<OrderHotel> queryOrderHotel(int from, int pageSize);
}
